//
//  JsInputBoxVm.h
//  DuTe
//
//  Created by Gikki Ares on 2020/12/22.
//  Copyright © 2020 vgemv. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


@interface JsInputBoxVm: NSObject

@property(nonatomic,assign)CGFloat mf_width;
@property(nonatomic,assign)CGFloat mf_height;


@property(nonatomic,assign)CGFloat mf_top_tv;
@property(nonatomic,assign)CGFloat mf_leading_tv;
@property(nonatomic,assign)CGFloat mf_trailing_tv;
//@property(nonatomic,assign)CGFloat mf_height_tv;

//文本框的最大高度.
@property(nonatomic,assign)CGFloat mf_maxHeight_text;
@property(nonatomic,assign)CGFloat mf_height_text;
@property(nonatomic,assign)CGFloat mf_top_text;
@property(nonatomic,assign)CGFloat mf_bottom_text;
@property(nonatomic,strong)UIFont * mfont_text;
//输入框文本颜色
@property(nonatomic,strong)UIColor * mcolor_text;
@property(nonatomic,strong)NSString * mstr_text;


//placeholder
@property(nonatomic,strong)UIColor * mcolor_placeHolder;
@property(nonatomic,strong)NSString * mstr_placeHolder;
//占位label和textView的距离
@property(nonatomic,assign)CGFloat mf_leading_placeHolder;


@property(nonatomic,assign)CGFloat mf_keyboardHeight;

//是否在键盘上面.
@property(nonatomic,assign)BOOL mb_isRised;
@property(nonatomic,assign)BOOL mb_isRising;
@property(nonatomic,assign)BOOL mb_isDowning;


@property(nonatomic,assign)CGFloat mf_spacing_tv_btn;

@property(nonatomic,assign)CGFloat mf_leading_expression;
@property(nonatomic,assign)CGFloat mf_w_expression;
@property(nonatomic,assign)CGFloat mf_h_expression;


@property(nonatomic,assign)CGFloat mf_w_publish;
@property(nonatomic,assign)CGFloat mf_h_publish;
@property(nonatomic,strong)UIColor * mcolor_publish_textEmpty;
@property(nonatomic,strong)UIColor * mcolor_publish_textNotEmpty;


+ (JsInputBoxVm *)defaultInstance;



- (void)doCaculate;
- (CGRect)frame;
- (CGRect)riseFrame;
- (CGRect)downFrame;
- (CGRect)bounds;
- (CGRect)textFrame;
- (CGRect)placeholdLabelFrame;
- (CGRect)textViewFrame;
- (CGRect)expressBtnFrame;
- (CGRect)voiceBtnFrame;
- (CGRect)publishBtnFrame;

@end

NS_ASSUME_NONNULL_END
